package com.vchello.service.user;

import java.util.List;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.vchello.bean.security.UserRole;
import com.vchello.bean.user.User;
import com.vchello.bean.user.UserProgress;

/**
 * 
 * @author power
 *
 */
public interface UserService extends IService<User> {
	
	User findByOne(int id);
	
	User login(String userName, String password);
	
	User adminLogin(String name, String password);
	
	User findUserByUserName(String userName);
	
	User findUserByPhone(String phone);
	
	User findUserByEmail(String email);

	Integer saveUser(User user);

	Integer updateUser(User user);
	
	boolean deleteUser(User user);
	
	List<User> queryPage(Page<User> page, User user);
	
	List<User> queryList(User user);
	
	User findParentUserByUserId(int userId);
	
	UserProgress findUserProgressById(int id);
	
	List<User> findByPropertis(String colum, Object value);
	
	List<Object[]> findDealman(int organizeId);
}
